package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 我的购劵记录表
 * </p>
 *
 * @author yoominic
 * @since 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_purchase_coupons_record")
public class PurchaseCouponsRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String orderSn;
    /**
     * 购买时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private LocalDateTime buyTime;

    /**
     * 劵额
     */
    private BigDecimal amount;

    /**
     * 购买的用户
     */
    private Integer userId;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:MM:SS", timezone = "GMT+8")
    private LocalDateTime updateTime;

    private Integer status;
    @TableField(exist = false)
    private String mobile;

}
